package cn.csg.iotplatform.module.system.api.manufacturer;

import cn.csg.iotplatform.module.system.api.manufacturer.dto.EqtDeleteManufactureDto;
import cn.csg.iotplatform.module.system.api.manufacturer.dto.EqtManufactureDto;
import com.alibaba.fastjson.JSONObject;
import com.dtflys.forest.annotation.Header;
import com.dtflys.forest.annotation.JSONBody;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.http.ForestResponse;

import java.util.Map;

/**
 * @author : sz
 * @date : 2024/5/17 17:42
 */
public interface EqtManufacturerClient {

    @Post("#{iot.eqt-center.address}/bs/eqt/esb/iotmanage/vendor/saveEqtDeviceVendorBaseInfo")
    ForestResponse<JSONObject> insertEqtManufacturer(@Header Map<String, Object> headerMap, @JSONBody EqtManufactureDto eqtManufactureDto);

    @Post("#{iot.eqt-center.address}/bs/eqt/esb/iotmanage/vendor/deleteVendorInfo")
    ForestResponse<JSONObject> deleteEqtManufacturer(@Header Map<String, Object> headerMap, @JSONBody EqtDeleteManufactureDto dto);

}
